From 3b28f7fdd555ff366b2b02f76ec10963343becd3 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 23 Dec 2008 17:35:05 +0000 Subject: [PATCH] Show icon instead of exploding for a remote API file we don't have a local handler class for... --- includes/filerepo/ForeignAPIFile.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/filerepo/ForeignAPIFile.php b/includes/filerepo/ForeignAPIFile.php index fa692b15bb..d9fb85d069 100644 --- a/includes/filerepo/ForeignAPIFile.php +++ b/includes/filerepo/ForeignAPIFile.php @@ -35,6 +35,10 @@ class ForeignAPIFile extends File { } function transform( $params, $flags = 0 ) { + if( !$this->canRender() ) { + // show icon + return parent::transform( $params, $flags ); + } $thumbUrl = $this->repo->getThumbUrlFromCache( $this->getName(), isset( $params['width'] ) ? $params['width'] : -1, -- 2.20.1